var Archive = {
	slidedown: function() {
		var btnShow = $('.archive-btn-show');
		var hideContent = $('.archive-hide');
		//		btnShow.on("click", hideContent, function() {
		//			var index;
		//			index = $(btnShow).index($(this));
		//			console.info(index);
		//			hideContent.eq(index).slideDown();
		//		});
		var index;
		
		btnShow.click(function() {
			index = $(btnShow).index($(this));
			if(hideContent.eq(index).css('display') === 'none') {
				cleancss();
				cleancss2();
				keep();
				hideContent.eq(index).slideDown();
				
				
				
			} else {
			
				hideContent.eq(index).slideUp();
				cleancss2();
				
			}

		});

		function cleancss() {
			
			hideContent.slideUp();
			
		}   
		function cleancss2(){
			$('.archive-btn-show ').css({'color':''});
			$('.archive-btn-show i').css({
				'color': '',
				'transform': ''
			});
			$('.archive-left-list1 li').css('background','');
			hideContent.css({'background':'','z-index':'10'});
		}

		function keep() {
			$('.archive-btn-show ').eq(index).css({'color':'#449D44'});
			$('.archive-btn-show i').eq(index).css({
				'color': '#449D44',
				'transform': 'rotateZ(90deg)'
			});
			
			$('.archive-left-list1 li').eq(index).css('background','#F5F5F5');
			hideContent.eq(index).css({'background':'#F5F5F5','z-index':'15'});
		}
	}
};